import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

let index = [
{
	path: '/',
	name: 'NewsIndex', 
	component: resolve => require(['../views/news/news.vue'],resolve)
},
{
	path: '/questions',
	name: 'QuestionsIndex', 
	component: resolve => require(['../views/questions/question.vue'],resolve)
},
{
	path: '/recruit',
	name: 'RecruitIndex', 
	component: resolve => require(['../views/recruit/recruit.vue'],resolve)
},
{
	path: '/Special-column',
	name: 'SpecialColumnIndex', 
	component: resolve => require(['../views/specialColumn/specialColumn.vue'],resolve)
},
{
	path: '/member',
	name: 'MemberIndex', 
	component: resolve => require(['../views/member/member.vue'],resolve)
}
]
const router = new Router({
	routes: index,
	linkActiveClass: 'active'
})
router.beforeEach((to,from,next) => {
	this.$vux.loading.show({
	 text: 'Loading'
	})
	next()
})
router.afterEach((to) => {
	this.$vux.loading.hide()
})
export default router